//
//  WmcSelectWaterMarkVM.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/3/31.
//

import RxRelay
import UIKit

class WmcSelectWatermarkVM: WmcBaseVM {
    /// 确定
    var ensureClosure: (([WmcSelectWatermarkModel]) -> Void)?

    /// 水印列表
    var watermarks: [WmcSelectWatermarkModel] = []

    func ensure() {
        var list: [WmcSelectWatermarkModel] = []
        watermarks.forEach { model in
            if model.isSelected {
                list.append(model)
            }
        }
        ensureClosure?(list)
    }
}
